import React from 'react';

type Iprops = {
  foo?: string;
};

type Istate = {
  hobby: string[];
  age: number;
};

class Product extends React.Component<Iprops, Istate> {
  name: string;
  constructor(props: any) {
    super(props);
    (this.name = '李雷'),
      (this.state = {
        hobby: ['抽烟', '喝酒', '烫头'],
        age: 20,
      });
  }
  render(): React.ReactNode {
    return (
      <fieldset>
        <legend>商品</legend>
        <h1>Product</h1>
      </fieldset>
    );
  }
}

export default () => <Product />;
